import http from '@/api';
import { ADMIN_MODULE } from '@/api/helper/prefix';
import type { IPage } from '@/api/types';
import type {NovelDictsEnity} from "@/api/types/novel/novelDict";

/**
 * 获取字典
 * @param params
 * @returns {*}
 */
export const getDictDsByCode = (params: { code: number }) => {

  return http.get<IPage<NovelDictsEnity>>(ADMIN_MODULE + `/novel-dict-detail/byCode`, { code : params.code } )
}

